import { Controller, Get, Req, Query, Bind } from '@nestjs/common';
import { AppService } from './app.service';
import { AppDto } from './app.dto';

@Controller()
export class AppController {
  constructor(private readonly appService: AppService) {}

  @Get('/api/isWhale')
  isWhale(@Query() dto: AppDto): any {
    console.log("dto", dto);
    return this.appService.isWhale(dto.address, dto.chain).then(res => {
      return res;
    });
  }
}
